Skip to content

Conversation

@marko-bekhta
Copy link
Member

@marko-bekhta marko-bekhta commented Oct 31, 2025

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19916

public void resetListener() {
@BeforeEach
void setUp(SessionFactoryScope scope) {
SessionFactoryImplementor sessionFactory = scope.getSessionFactory();

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'SessionFactoryImplementor sessionFactory' is never read.
entityManagerFactory.unwrap( SessionFactoryImplementor.class ).getEventListenerRegistry()
.prependListeners( EventType.LOAD, new SecuredLoadEntityListener() );

Customer customer = entityManager.find( Customer.class, customerId );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Customer customer' is never read.
@marko-bekhta marko-bekhta force-pushed the test/update-to-junit-jupiter branch 3 times, most recently from 3d34cc4 to aec88b7 Compare November 11, 2025 14:53
@marko-bekhta marko-bekhta force-pushed the test/update-to-junit-jupiter branch from aec88b7 to e2b800b Compare November 11, 2025 20:18
assertEquals( 2, readWriteVersionedCacheableItem.getTags().size() );
// open another session
s2 = scope.getSessionFactory().openSession();
s2.beginTransaction();

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning test

Variable
s2
may be null at this access as suggested by
this
null guard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant